package com.marry.business.service.user.impl;

import com.marry.business.repository.user.RoleRepository;
import com.marry.business.service.user.RoleService;
import com.marry.contract.vo.RoleVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

/**
 * @path：com.marry.service.impl.RoleServiceImpl.java
 * @className：RoleServiceImpl.java
 * @description：角色
 * @author：杨超
 * @dateTime：2020/11/19 15:28
 * @editNote：
 */
@Slf4j
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleRepository roleRepository;

    @Override
    public Flux<RoleVo> getRoleByUserId(String userId) {
        return roleRepository.getRoleByUserId(userId);
    }

}
